#include "panel.h"
#include "ui_panel.h"
#include <QDebug>

Panel::Panel(QWidget *parent) : QWidget(parent)
{
    setFixedSize(200, 512);
    ui.setupUi(this);
}

void Panel::on_pushButton_clicked()
{
    emit clearBoard();
}

void Panel::on_editing_stateChanged(int arg1)
{
    if (arg1 == 0){
        emit setEditing(false);
    }else if(arg1 == 2){
        emit setEditing(true);
    }else{
        qDebug() << "Some Error in Panel::on_editing_stateChanged";
    }

}
